package lb4;

/**
 * Created with IntelliJ IDEA.
 * User: Борис
 * Date: 30.10.13
 * Time: 23:11
 * To change this template use File | Settings | File Templates.
 */
public class LabFourRun {
    public static void main(String[] args){
//        double[][] matrix = {
//                {-14, -6,  0,  0, 0,-78},
//                { -9, 15, -1,  0, 0,-73},
//                {  0,  1,-11,  1, 0,-38},
//                {  0,  0, -7, 12, 3, 35},
//                {  0,  0,  0,  6,-7, 91}
//        };
        double[] c = { -6,-1,  1, 3, 0};
        double[] b = {-14,15,-11,12,-7};
        double[] a = {  0,-9,  1,-7, 6};
        double[] b1 = {-78,-73,-38,35,91};
        LabFour lb4 = new LabFour(a,b,c,b1);
        double[] Y =  lb4.decisionSystem();
        for(int i = 0; i<Y.length; i++){
            System.out.printf("%s %.2f\n","y"+i+" = ",Y[i]);
        }
    }
}
